
CXX = g++
FLAGS = -O3 -Wall

OBJFILES = mesh.o \
				autoSkeletonBuilder.o skeletonsMatcher.o \
				wavefront.o ganimator.o clustering.o skinning.o \
				gskeleton.o autoSkeletonBuilder.o \
				meshAnimator.o 
######################################################
all: $(OBJFILES)

.cpp.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) -c $(FLAGS) $*.cpp

clean:
	rm *.o 

mesh.o: mesh.cpp mesh.h 
autoSkeletonBuilder.o: autoSkeletonBuilder.h autoSkeletonBuilder.cpp
skeletonsMatcher.o: skeletonsMatcher.h skeletonsMatcher.cpp
wavefront.o: wavefront.h wavefront.cpp
ganimator.o: ganimator.h ganimator.cpp
clustering.o: clustering.h clustering.cpp
skinning.o: skinning.h skinning.cpp
gskeleton.o: gskeleton.h gskeleton.cpp
autoSkeletonBuilder.o: autoSkeletonBuilder.h autoSkeletonBuilder.cpp
meshAnimator.o: meshAnimator.h meshAnimator.cpp
